Crate proc_utils

source ·
Expand description

This crate provides a series of traits, macros, functions, and utilities that make writing and debugging proc macros easier

Structs

  • An abstract stream of tokens, or more concretely a sequence of token trees.

Traits

  • Like ToPretty but prints to the console instead.
  • Bring this trait into scope for a blanket to_pretty() implementation for all syn-compatible types as well as TokenStream2.

Attribute Macros

  • Similar to suppress_item, but will instead entirely replace the item this attribute is attached to with whatever item is specified in the attribute arguments.
  • Completely suppresses the attached item from being emitted into the surrounding source file. If you put this attribute last, the previous attributes will still see the item.